using System;
using UnityEngine;

public class UI3DSceneBase : MonoBehaviour
{
    public GameObject m3DCanvaLeft;
    public GameObject m3DCanvaLeft_Vertical;
    public GameObject m3DCanvaRight;
    public GameObject m3DCanvaRight_Vertical;
    
    public void Open3DPanelByEnum(E3DPanel e3DPanel)
    {
        switch (e3DPanel)
        {
            case E3DPanel.Left:
                m3DCanvaLeft.SetActive(true);
                m3DCanvaLeft_Vertical.SetActive(true);
                m3DCanvaRight.SetActive(false);
                m3DCanvaRight_Vertical.SetActive(false);
                break;
            case E3DPanel.Right:
                m3DCanvaLeft.SetActive(false);
                m3DCanvaLeft_Vertical.SetActive(false);
                m3DCanvaRight.SetActive(true);
                m3DCanvaRight_Vertical.SetActive(true);
                break;
            default:
                m3DCanvaLeft.SetActive(false);
                m3DCanvaLeft_Vertical.SetActive(false);
                m3DCanvaRight.SetActive(false);
                m3DCanvaRight_Vertical.SetActive(false);
                break;
        }
    }
}
